how to embed a text editor into a web app